package com.xingkeduo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author 高杰
 * @time 2018年12月17日 上午11:47:05
 * @description
 */
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan({"com.xingkeduo.pojo.query"})
@EnableEurekaClient
@EnableFeignClients
public class OrderApplication {


    public static void main(String[] args) {
        // new
        // SpringApplicationBuilder(ServiceBusApplication.class).web(true).run(args);
        //System.setProperty(ConstantUtil.DATABASE, DatabaseEnum.MYSQL_USER_MASTER.toConditionString());

        System.setProperty("serviceDatabases", ",MYBATIS_PLUS,");
        SpringApplication.run(OrderApplication.class, args);
    }
}
